package com.anjoyo.xgh.musicshare.util;

import android.R.menu;
import android.os.Environment;

public class Constant {

	// 应用的key 请到官方申请正式的appkey替换APP_KEY
	public static final String APP_KEY = "1244368020";
	// 替换为开发者REDIRECT_URL
	public static final String REDIRECT_URL = "http://anjoyo.com/";
	// 新支持scope 支持传入多个scope权限，用逗号分隔
	public static final String SCOPE = "email,direct_messages_read,direct_messages_write,"
			+ "friendships_groups_read,friendships_groups_write,statuses_to_me_read,"
			+ "follow_app_official_microblog";

	public static String ROOT = Environment.getExternalStorageDirectory()
			.getAbsolutePath();
	/**
	 * 缓存目录
	 */
	public static String CACHE = ROOT+"/SD/Music/Img/";
	public static String MUSIC_PATH = ROOT+"/SD/Music/song/";
	public static String SINGER_IMG = ROOT+"/SD/Music/singerimg/";
	public static String RECORD_PATH = ROOT+"/SD/Music/RecordCache";
	public static String NOCALEAR_CACHE = ROOT+"/SD/Music/nocalear/nocaler";
	public static String LRC_PATH = ROOT+"/SD/Music/LRC/";
	
	/*网络请求*/
	public static String SERVER_IP = "http://210.41.235.16:8088/MusicServer";
//	public static String SERVER_IP = "http://192.168.43.173:8088/MusicServer";
//	public static String SERVER_IP = "http://192.168.1.112:8088/MusicServer";
	public static String REGIST_URL = SERVER_IP + "/regist";
	public static String LOGIN_URL = SERVER_IP + "/login";
	public static String SEARCH_SONG =  SERVER_IP+"/searchsongs";
	public static String SHARE_URL = SERVER_IP +"/share";
	public static String SINGER_URL = SERVER_IP+"/singerImage/";
	public static String SHARE_LIST =  SERVER_IP+"/sharelist";
	public static String SHARE_LIKE = SERVER_IP+"/like";
	public static String CLODE_SONG = SERVER_IP+"/clodesong";
	public static String GET_CLODESONGLIST = SERVER_IP+"/clodesonglist";
	
	/** handel msgwhat **/
	public static int DOWLOAD_OK = 0;
	public static int NETSONG_DOWLOAD_OK = 1;
	public static int MSG_OAUTH_ERROR=404;
	public static int MSG_OAUTH_SUCCESS=200;
	public static int MSG_GET_USERINFO_OK=201;
	public static int MSG_REGIST_OK=100;
	public static int DOWN_SINGER_IMG = 123;
	public static int MSG_SHARELIST_OK = 1;
	public static int MSG_SHARE_BACK = 111;
	
	//新浪用户信息注册
	public static int MSG_SINA_SUCCESS = 202;
	public static int MSG_SINA_ERROR = 405;
	//登录
	public static int MSG_LOGIN_SUCCESS = 200;
	public static int MSG_LOGIN_ERROR = 404;
	public static int MSG_SHARE_OK = 200;
	//枚举类型
	public static enum DOWN_TYPE {
		MP3,LRC,VIDEO
	}
	public static enum PLAYSTATUS {
		WAITE,PAUSE,PLAYING
	}
	public static enum PLAYLIST {
		LOCAL_MUSIC_LIST,NET_SONGS_LIST,FAV_MUSIC_LIST
	}
	
	//ACTION
	public static String SERVICE_DOWN = "com.service.down";
	public static String ACTION_PLAY = "com.anjoyo.action.play";
	public static String ACTION_PAUSE= "com.anjoyo.action.pause";
	public static String ACTION_AGO = "com.anjoyo.action.ago";
	public static String ACTION_NEXT = "com.anjoyo.action.next";

	public static String ACTION_UPDATE_MUSIC = "com.anjoyo.action.updatemusic";
	public static String ACTION_UPDATE_TIME = "com.anjoyo.action.updatetime";
	
	//收藏页面离线下载开始、结束广播ACTION
	public static String ACTION_FAVDOWN_START = "com.anjoyo.action.favstart";
	public static String ACTION_FAVDOWN_END = "com.anjoyo.action.favend";
	
}
